To quote his most famous character, here’s to a “half o’ wiseguy.”

Tony Sirico — best known for his prolific portrayal of gangster Paulie “Walnuts” Gualtieri on HBO’s legendary “The Sopranos” — was remembered fondly by family, friends and fellow cast members as he was laid to rest Wednesday in South Brooklyn.

Born Gennaro Anthony Sirico Jr. on July 29, 1942, he died at age 79 on Friday, his brother and priest Father Robert Sirico announced via social media. His funeral was broadcast via livestream Wednesday morning.

Robert celebrated his brother’s funeral mass at Basilica of Regia Pacis in Sirico’s native Brooklyn nabe, acknowledging cast members along with “loyal and exuberant fans” who came to pay their respects to the beloved actor.

“My friends, if Paulie Walnuts can steal heaven, so can you and I,” Robert told the solemn crowd of nearly 100 gathered inside the historic Bensonhurst church, which included Sirico’s former “Sopranos” co-stars Lorraine Bracco, Steven Van Zandt and Joseph Gannascoli.

Fellow character actors in attendance included Tony Daniels, a k a the voice of Tony the Tiger, and Angel Salazar from “Scarface.”

Van Zandt, who starred as Silvio Dante opposite Sirico on “The Sopranos,” told The Post: “Tony was one of my lifelong best friends — and one of a kind you know? One of a kind. I’m certainly going to miss him.”

The role of a tough guy came naturally to Sirico: He was arrested 28 times throughout his life, the first coming at age 7 for stealing change from a newsstand.

“After all the times I was pinched, I knew every judge in town,” Sirico, who also played made men roles in 1990’s “Goodfellas” and the 1996 “Gotti” film, once told the LA Times. “I was a tough kid. I always had that itch in my britches to find out who I was. I tested my [courage] every night.”

During the funeral service homily, Robert reminisced of a time many years ago that his brother refused communion, admitting he hadn’t been to confession in a very long time.

However, a few weeks ago, when Robert “sensed that the end was coming” while visiting Tony in Florida, the veteran actor finally went through with his confession, the priest told those in attendance. Sources told The Post Sirico was battling dementia under the care of his daughter, Joanne, in the Sunshine State at the time of his death.

While walking out behind the casket, one attendee collapsed into the seats and his friend, Dion Licciodoni, told The Post the man was having a panic attack. Sirico’s old neighborhood buddy also recalled, “Tony was a friend from the Bay Ridge neighborhood — we lived up the street from him.”

The late actor will be buried at Calvary Cemetery in Queens, according to one unidentified attendee.

Meanwhile, actor-producer Artie Pasquale, who appeared as Burt Gervasi on “The Sopranos,” paid homage to his cherished old pal after the service.

“Tony was wonderful: He made everyone laugh and could be serious, but he always brought some life to the scene, or whatever situation,” Pasquale told The Post. “We’re gonna miss Tony. He was just always dressed the best. Always had the best tie, but he was great and he’s really going to be missed.”

“Sopranos” stars Steven Van Zandt and Lorraine Bracco attended Tony Sirico’s funeral at the Basilica of Regina Pacis in Dyker Heights, Brooklyn.
“Sopranos” star Steven Van Zandt chats with Tony Sirocco’s daughter, Joanne.
Paul Martinka
“Sopranos” stars Steven Van Zandt and Lorraine Bracco paid homage to their beloved co-star Tony Sirico.
Paul Martinka

Even though he played a loyal soldier to James Gandolfini’s Tony Soprano, in real life Sirico was never afraid to stand up to the boss — in his case, it was show creator David Chase.

“He was the only one who ever asked me to have a line changed. And I did it,” Chase told Variety. “Another character was talking about Paulie, and they said he was a bully. Tony didn’t like that … He asked me to take the word ‘bully’ out of there. And I did,” the creator added, saying Sirico was “part of one of the greatest casts of all time.”

Tony Sirico was remembered fondly for his role in “The Sopranos.”
Tony Sirico was remembered dearly by many of his castmates from “The Sopranos.”
The LIFE Images Collection via G

Fellow “Sopranos” cast members, too, were quick to see how Sirico not only brought the role to life but what playing Paulie meant to him.

“He was never happier than playing Paulie Walnuts. Perfect casting. Rest easy Tony. You did good,” David Proval, who played Richie Aprile on “The Sopranos” posted to Instagram, calling Sirico “the real deal.”

After the funeral on Wednesday, “Sopranos’ co-star Joseph Gannoscoli, who played Vito Spatafore, shared with The Post his theory of what his pal Sirico would say at the gates of -— yes — heaven.

“There wasn’t a big difference between Tony Sirico the actor and the guy you knew from Brooklyn…he was old school and you could see that he came from [the old school],” Gannascoli told The Post.

“I can imagine what he’s going to say to Saint Peter. Probably ‘you don’t wanna have a problem’ or ‘you don’t wanna be my enemy, Saint Peter.’ ”

Born Gennaro Anthony Sirico Jr. on July 29, 1942, he died at age 79 on Friday, his brother and priest Father Robert Sirico announced on social media.
Paul Martinka